import request from "axios";

export function list(params) {
    return request({
        url: "/sys/mail/mailList",
        method: "get",
        params: params
    })
}

export function deleteMail(params){
    return request({
        url: "/sys/mail/deleteMail",
        method: "delete",
        params: params
    })
}

export function clear(){
    return request({
        url:"/sys/mail/clearMailRecord",
        method:"delete"
    })
}

export function clearCache(){
    return request({
        url: "/sys/mail/clearMailRecordCache",
        method: "delete",
    })
}